package com.itwill.ecom.product;

import java.util.List;

public interface ProductService {

	//상품추가
	public void createProduct(ProductBeans beans) throws Exception;
		
	//상품 전체 보여줘
	public List<ProductBeans> getProductAll() throws Exception;
	
	//전체 상품개수
	public int getAllCount() throws Exception;
	
	//상품 하나 보여줘
	public ProductBeans getProductByNo(int product_no) throws ProductNotFoundException,Exception;
	
	//상품 카테고리/제조사 별로 보여줘
	public List<ProductBeans> getProductByCategory(int product_category) throws ProductNotFoundException,Exception;
		
	public List<ProductBeans> getProductByCompany(int product_company) throws ProductNotFoundException,Exception;
	
	//제조사/카테고리 별 상품 갯수
	public int getCountByCompany(String company) throws Exception;
	public int getCountByCategory(String category) throws Exception;
	
	//상품 정보 수정할래
	public void updateProduct(ProductBeans productUpdate) throws Exception;
	
	//상품 지울래
	public void deleteProduct(int deleteProduct) throws Exception;
	
	/*//상품 상세보기 보여줘
	public ProductBeans detailProduct(int product_no) throws Exception;
	*/
	
}
